package com.collectplus.express.model;

import java.io.Serializable;

import droid.frame.utils.lang.Str;

/**
 * Created by joker on 2017/12/27.
 */
public class SameCityParcelBean implements Serializable {

    private String sendBuildName;//寄件的建筑物名称
    private String sendAddress;//寄件人的详细地址
    private String sendName;//寄件人姓名
    private String sendPhone;//寄件人电话
    private double sendLatitude;
    private double sendLongitude;
    private String sendProvince;//寄件人省
    private String sendCity;//寄件人市
    private String sendDistrict;//寄件人区
    private String sendAddressDesc;//寄件人的门牌号

    private String receiveBuildName;//收件人建筑物名称
    private String receiveAddress;//收件人详细地址
    private String receiveName;//收件人名字
    private String receivePhone;//收件人电话
    private double receiveLatitude;
    private double receiveLongitude;
    private String receiveProvince;//收件人省
    private String receiveCity;//收件人市
    private String receiveDistrict;//收件人区
    private String receiveAddressDesc;//收件人的门牌号

    private String goodsImage; // 要寄得东西的图片
    private String parcelImgUrl;// 网络图片
    private String goodsType;//物品类型
    private String weight;
    private String remark; // ...备注

    public String getRemark() {
        if (remark == null) {
            remark = "";
        }
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSendBuildName() {
        return sendBuildName;
    }

    public void setSendBuildName(String sendBuildName) {
        this.sendBuildName = sendBuildName;
    }

    public String getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
    }

    public String getSendName() {
        return sendName;
    }

    public void setSendName(String sendName) {
        this.sendName = sendName;
    }

    public String getSendPhone() {
        return sendPhone;
    }

    public void setSendPhone(String sendPhone) {
        this.sendPhone = sendPhone;
    }

    public String getReceiveBuildName() {
        return receiveBuildName;
    }

    public void setReceiveBuildName(String receiveBuildName) {
        this.receiveBuildName = receiveBuildName;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public String getGoodsImage() {
        if (goodsImage == null) {
            goodsImage = "";
        }
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public String getParcelImgUrl() {
        return parcelImgUrl;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public void setParcelImgUrl(String parcelImgUrl) {
        this.parcelImgUrl = parcelImgUrl;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public double getSendLatitude() {
        return sendLatitude;
    }

    public void setSendLatitude(double sendLatitude) {
        this.sendLatitude = sendLatitude;
    }

    public double getSendLongitude() {
        return sendLongitude;
    }

    public void setSendLongitude(double sendLongitude) {
        this.sendLongitude = sendLongitude;
    }

    public double getReceiveLatitude() {
        return receiveLatitude;
    }

    public void setReceiveLatitude(double receiveLatitude) {
        this.receiveLatitude = receiveLatitude;
    }

    public double getReceiveLongitude() {
        return receiveLongitude;
    }

    public void setReceiveLongitude(double receiveLongitude) {
        this.receiveLongitude = receiveLongitude;
    }

    public String getSendProvince() {
        return sendProvince;
    }

    public void setSendProvince(String sendProvince) {
        this.sendProvince = sendProvince;
    }

    public String getSendCity() {
        return sendCity;
    }

    public void setSendCity(String sendCity) {
        this.sendCity = sendCity;
    }

    public String getSendDistrict() {
        return sendDistrict;
    }

    public void setSendDistrict(String sendDistrict) {
        this.sendDistrict = sendDistrict;
    }

    public String getReceiveProvince() {
        return receiveProvince;
    }

    public void setReceiveProvince(String receiveProvince) {
        this.receiveProvince = receiveProvince;
    }

    public String getReceiveCity() {
        return receiveCity;
    }

    public void setReceiveCity(String receiveCity) {
        this.receiveCity = receiveCity;
    }

    public String getReceiveDistrict() {
        return receiveDistrict;
    }

    public void setReceiveDistrict(String receiveDistrict) {
        this.receiveDistrict = receiveDistrict;
    }

    public String getImageUrl() {
        if (Str.isNotEmpty(getGoodsImage())) {
            return getGoodsImage();
        }
        // 从网络而加载
        else if (Str.isNotEmpty(getParcelImgUrl())) {
            return getParcelImgUrl();
        }
        return "";
    }

    public String getSendAddressDesc() {
        return sendAddressDesc;
    }

    public void setSendAddressDesc(String sendAddressDesc) {
        this.sendAddressDesc = sendAddressDesc;
    }

    public String getReceiveAddressDesc() {
        return receiveAddressDesc;
    }

    public void setReceiveAddressDesc(String receiveAddressDesc) {
        this.receiveAddressDesc = receiveAddressDesc;
    }
}
